package com.globallogic.vacationplanner.web.controller;


import com.globallogic.vacationplanner.transfer.context.IServiceContext;
import com.globallogic.vacationplanner.web.context.BackinBeanContext;
import com.globallogic.vacationplanner.web.context.BeanProvider;

public abstract class BaseBean {

	protected IServiceContext getServiceContext() {
		return BeanProvider.getServiceContext();
	}
	
	public UserBean getUserBean() {
		return new BackinBeanContext().findBean("userBean");
	}

	public VacationBean getVacationBean() {
		return new BackinBeanContext().findBean("vacationBean");
	}
	
	public ProjectBean getProjectBean(){
		return new BackinBeanContext().findBean("projectBean");
	}


	
}
